orangePi3 TLS烧录启动、wifi配置和ssh登录、烧录进内置emmc flash 您所在的位置:网站首页 香橙派pi3 lts orangePi3 TLS烧录启动、wifi配置和ssh登录、烧录进内置emmc flash

orangePi3 TLS烧录启动、wifi配置和ssh登录、烧录进内置emmc flash

2024-03-19 07:27| 来源: 网络整理| 查看: 265

orangePi3 TLS烧录启动、wifi配置和ssh登录、烧录进内置emmc flash

文章目录 orangePi3 TLS烧录启动、wifi配置和ssh登录、烧录进内置emmc flash烧录镜像到TF卡启动镜像下载工具下载烧录 启动orange pi引脚图(要留意串口位置)启动登录orange pi ubuntu系统 设置wifi使用ssh方式登录烧录到内置emmc flash中验证内置emmc flash烧录启动是否成功

烧录镜像到TF卡启动 镜像下载

官方镜像地址:http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3-LTS.html

我这里使用的是Orangepi3-lts_3.0.8_ubuntu_jammy_server_linux5.16.17.7z,解压后Orangepi3-lts_3.0.8_ubuntu_jammy_server_linux5.16.17.img

工具下载

使用工具balenaEtcher

下载地址:https://github.com/balena-io/etcher/releases

烧录

1)准备一张TF卡,内存最好是>=32G的,通过读卡器接入电脑。

2)启动balenaEtcher,点击Select image选择咱们刚刚下载解压的Orangepi3-lts_3.0.8_ubuntu_jammy_server_linux5.16.17.img文件,

然后,Select drive接入的TF卡,最后点击Flash。等待直到烧录完成。 image-20230505082538601

启动orange pi 引脚图(要留意串口位置)

image-20230505082234165

启动

将TF卡插入树莓派卡槽,使用usb转串口工具,连接orange pi上的gnd,rx,tx引脚,另一端插入电脑;

使用串口工具如SecurityCRT等,打开串口,波特率115200

给orange pi上电,串口会出现日志,大致启动过程简要描述就是启动内嵌的U-Boot SPL 2021.10-orangepi->从TF卡启动U-boot loaded from SDt->拉取内核镜像->等待出现登录login

登录orange pi ubuntu系统

默认用户名:root,密码:orangepi

image-20230505084507119

设置wifi #进入/etc/profile.d/ cd /etc/profile.d/ #新建wifi.sh,写入 vim wifi.sh nmcli dev wifi connect wifi名 password wifi密码 #保存退出 :wq

image-20230505085100444

重启,wifi生效

image-20230505085645839

使用ssh方式登录

有了ip了,我们就可以使用ssh方式登录了。

注意:默认orange pi 用户名:root,密码:orangepi

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-NZujebCt-1683248879875)(null)]

image-20230505090358809

image-20230505090452190image-20230505090536425

烧录到内置emmc flash中

执行自带的nand-sata-install,会弹窗操作界面,按照界面中提示,一步一步选择点击即可

root@orangepi3-lts:~# nand-sata-install

image-20230505091852910

image-20230505091920506

image-20230505092008076

image-20230505092035142

image-20230505092215350

验证内置emmc flash烧录启动是否成功

拔掉TF卡(此时开发板只有内置emmc了),上电启动,启动成功将看到类似如下log,说明内置emmc flash烧录启动成功。

U-Boot SPL 2021.10-orangepi (Sep 06 2022 - 19:07:09 +0800) PMU: AXP806 DRAM: 2048 MiB Trying to boot from MMC2 NOTICE: BL31: v2.2(debug):a04808c1 NOTICE: BL31: Built : 19:40:26, Jul 13 2022 NOTICE: BL31: Detected Allwinner H6 SoC (1728) NOTICE: BL31: Found U-Boot DTB at 0xc07ea28, model: OrangePi 3 LTS INFO: ARM GICv2 driver initialized NOTICE: PMIC: Probing AXP805 NOTICE: PMIC: AXP805 detected INFO: BL31: Platform setup done INFO: BL31: Initializing runtime services INFO: BL31: cortex_a53: CPU workaround for 855873 was applied INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x4a000000 INFO: SPSR = 0x3c9 U-Boot 2021.10-orangepi (Sep 06 2022 - 19:07:09 +0800) Allwinner Technology CPU: Allwinner H6 (SUN50I) Model: OrangePi 3 LTS I2C: ready DRAM: 2 GiB MMC: mmc@4020000: 0, mmc@4022000: 1 Loading Environment from FAT... Unable to use mmc 1:1... In: serial@5000000 Out: serial@5000000 Err: serial@5000000 Net: No ethernet found. Autoboot in 1 seconds, press to stop switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... Found U-Boot script /boot/boot.scr 3206 bytes read in 1 ms (3.1 MiB/s) ## Executing script at 4fc00000 U-boot loaded from SD Boot script loaded from mmc 203 bytes read in 1 ms (198.2 KiB/s) MMC: no card present 37593 bytes read in 4 ms (9 MiB/s) 3844 bytes read in 3 ms (1.2 MiB/s) Applying kernel provided DT fixup script (sun50i-h6-fixup.scr) ## Executing script at 45000000 13042247 bytes read in 642 ms (19.4 MiB/s) 25868296 bytes read in 1271 ms (19.4 MiB/s) Moving Image from 0x40080000 to 0x40200000, end=41c00000 ## Loading init Ramdisk from Legacy Image at 4ff00000 ... Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 13042183 Bytes = 12.4 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 4fa00000 Booting using the fdt blob at 0x4fa00000 Loading Ramdisk to 4938f000, end 49fff207 ... OK Loading Device Tree to 000000004931d000, end 000000004938efff ... OK Starting kernel ... Orange Pi 3.0.8 Jammy ttyS0 orangepi3-lts login: root Password: ___ ____ ___ _____ _ _____ ____ / _ \| _ \_ _| |___ / | | |_ _/ ___| | | | | |_) | | |_ \ | | | | \___ \ | |_| | __/| | ___) | | |___| | ___) | \___/|_| |___| |____/ |_____|_| |____/ Welcome to Orange Pi 3.0.8 Jammy with Linux 5.16.17-sun50iw6 System load: 33% Up time: 0 min Memory usage: 9% of 1.94G IP: 192.168.3.85 CPU temp: 60°C Usage of /: 21% of 7.0G [ 17 security updates available, 38 updates total: apt upgrade ] Last check: 2022-09-06 11:47 [ General system configuration (beta): orangepi-config ] Last login: Fri May 5 01:05:21 UTC 2023 from 192.168.3.200 on pts/0 Device 'wlan0' successfully activated with '306f6d04-41e1-43b6-b030-c93389ea40db'. root@orangepi3-lts:~# root@orangepi3-lts:~# root@orangepi3-lts:~# root@orangepi3-lts:~# df -h Filesystem Size Used Avail Use% Mounted on tmpfs 199M 5.8M 193M 3% /run /dev/mmcblk2p1 7.0G 1.4G 5.3G 21% / tmpfs 993M 0 993M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 993M 0 993M 0% /tmp /dev/zram1 47M 1.8M 42M 5% /var/log tmpfs 199M 0 199M 0% /run/user/0 root@orangepi3-lts:~#


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有